	#{extends 'main.html' /}
#{set title:'edit Topic' /}
#{if flag2==false}
                 this Topic doesn't exist  
                #{/if}
#{if flag3==false}
                 you are not allowed to edit this Topic  
                #{/if}
 #{else}
<form action="@{Topics.editTopic()}" method="post">
	<div>
	<p>
		Title <input type="text" id="title" />
	
		<textarea id="content" cols="40" rows="5">
         content here
         </textarea><br>
	</p>
	</div>>

	<input type="submit" value="edit Topic" />
	
#{/else}
</form>
<a href ="@{viewTopics()}">back to Topics </a>
